package exammanager;

import gui.GUIMain;

import java.awt.BorderLayout;
import java.awt.Dimension;
import javax.swing.JFrame;

import stuff.DisposeAction;

public class GUIExamManager extends GUIMain{
	private static final long serialVersionUID = 1L;
	private GUIExamManagerLeft left;
	private GUIExamManagerRight right;
	public GUIExamManager(JFrame cur, JFrame ex, GUIMain exGUI, int cornerIndex) {
		super(cur, cornerIndex);
		this.setTitle("QUẢN LÝ ĐỀ THI");
		this.exitButton.setAction(new DisposeAction(cur,ex, exGUI));
		this.bottomPanel.setLayout(new BorderLayout());
		this.bottomPanel.setOpaque(false);
		left = new GUIExamManagerLeft(this);
		left.setPreferredSize(new Dimension(220, 0));
		right = new GUIExamManagerRight(this);
		
		this.bottomPanel.add(left,BorderLayout.WEST);
		this.bottomPanel.add(right,BorderLayout.CENTER);
	}
	
	public GUIExamManagerRight getRightPanel(){
		return right;
	}
	
	public GUIExamManagerLeft getLeftPanel(){
		return left;
	}
}
